define(function (require, exports, module) {
    require("apps/lab/page.css");
    require("apps/easyui");

    exports.init = function (ctx, uuid) {
        var page = new $.PageDomFactory(uuid);
        page.getJqDom("lab-title").each(function(){
            var text = $(this).html();
            text = text.length > 6 ? (text.substr(0, 5) + "...") : text;
            $(this).html(text);
        });
        page.getJqDom("lab-item").on("click", function(){
            window.location.href = $(this).attr("data-href");
        });

    }
});